package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.NursingProjectDto;
import com.zzyl.entity.NursingProject;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 友人A
 */
@Mapper
public interface NursingProjectMapper {
    /**
     * 护理项目分页
     * @param name
     * @param status
     * @return
     */
    Page<NursingProject> pageNursingProject(String name, Integer status);

    /**
     * 添加护理项目
     * @param nursingProject
     */
    void addNursingProject(NursingProject nursingProject);

    /**
     * 根据id查询护理项目
     * @param id
     * @return
     */
    NursingProject seleteById(Long id);

    /**
     * 修改护理项目
     * @param nursingProject
     */
    void updateNursingProject(NursingProject nursingProject);

    /**
     * 启用禁用
     * @param id
     * @param status
     */
    void updataStatus(Long id, Integer status);

    /**
     * 根据id删除护理项目
     * @param id
     */
    void deleteNursingProject(Long id);

    /**
     * 查询全部护理项目
     * @return
     */
    List<NursingProject> seleteList();
}
